import request from '@/utils/request'

// 查询应付详情列表
export function listXqyfpay(query) {
  return request({
    url: '/supermarket/xqyfpay/list',
    method: 'get',
    params: query
  })
}

// 查询应付详情详细
export function getXqyfpay(xqyfpayId) {
  return request({
    url: '/supermarket/xqyfpay/' + xqyfpayId,
    method: 'get'
  })
}

// 新增应付详情
export function addXqyfpay(data) {
  return request({
    url: '/supermarket/xqyfpay',
    method: 'post',
    data: data
  })
}

// 修改应付详情
export function updateXqyfpay(data) {
  return request({
    url: '/supermarket/xqyfpay',
    method: 'put',
    data: data
  })
}

// 删除应付详情
export function delXqyfpay(xqyfpayId) {
  return request({
    url: '/supermarket/xqyfpay/' + xqyfpayId,
    method: 'delete'
  })
}
